package com.appleyk.model.hras;

import com.appleyk.enums.GenderEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.neo4j.ogm.annotation.NodeEntity;

@Data
@AllArgsConstructor
@NoArgsConstructor
@NodeEntity
public class Employees {

    private Long id;
    private Integer employeesId;
    private String employeesName;
    private Integer gander;
    private Integer age;
    private String phone;
    private String email;
    private String address;
    private String birthday;
    private String idCard;
    private String politicalProfile;
    private String hometown;
    private String emergencyContact;
    private String emergencyContactPhone;
    private String graduateSchool;
    private String nation;
    private String household;
    private String highestDegree;
    private String createTime;

    public String getStr() {
        return employeesName + "的基本信息\n" + "\n" +
                "性别: " + GenderEnum.getGenderName(gander) + "\n" +
                "年龄: " + age + "岁" +  "\n" +
                "手机号: " + phone + "\n" +
                "邮箱: " + email + "\n" +
                "住址: " + address + "\n" +
                "生日: " + birthday + "\n" +
                "身份证: " + idCard + "\n" +
                "政治面貌: " + politicalProfile + "\n" +
                "籍贯: " + hometown + "\n" +
                "紧急联系人: " + emergencyContact + "\n" +
                "紧急联系电话: " + emergencyContactPhone + "\n" +
                "毕业学校: " + graduateSchool + "\n" +
                "民族: " + nation + "\n" +
                "户籍所在地: " + household + "\n" +
                "最高学历: " + highestDegree + "\n" +
                "加入公司时间: " + createTime;
    }
}
